package com.example.demo.vo;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.*;
import com.alibaba.excel.enums.BooleanEnum;
import com.alibaba.excel.enums.poi.HorizontalAlignmentEnum;
import com.alibaba.excel.metadata.data.WriteCellData;
import lombok.Data;

@Data
@HeadRowHeight(75)
@ColumnWidth(50)
@HeadFontStyle(fontHeightInPoints = 12, bold = BooleanEnum.FALSE)
@HeadStyle(horizontalAlignment = HorizontalAlignmentEnum.LEFT, wrapped = BooleanEnum.TRUE)
public class TextMaterialExport {


    @ExcelProperty(value = "填写说明：\n" +
            "1、带*标记为必填；\n" +
            "2、文本标题不超过50字；\n" +
            "3、文本内容不超过2000字；\n")
    @ContentFontStyle
    @ContentStyle
    private WriteCellData<String> title;

    @ExcelProperty(value = "填写说明：\n" +
            "1、带*标记为必填；\n" +
            "2、文本标题不超过50字；\n" +
            "3、文本内容不超过2000字；\n")
    private WriteCellData<String> content;

}
